﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PlayingCards.Model.Entity
{
    /// <summary>
    ///  玩家
    /// </summary>
    [SugarTable("Player")]
    public class Player : BaseEntity
    {
        /// <summary>
        /// 玩家编号
        /// </summary>
        [SugarColumn(ColumnName = "PlayerNumber")]
        public string? PlayerNumber { get; set; }

        /// <summary>
        /// 房间编号
        /// </summary>
        [SugarColumn(ColumnName = "RoomNumber" ,IsNullable = true)]
        public int? RoomNumber { get; set; }

        /// <summary>
        /// 玩家昵称
        /// </summary>
        [SugarColumn(ColumnName = "NickName")]
        public string? NickName { get; set; }

        /// <summary>
        /// 牌面信息    
        /// </summary>
        [SugarColumn(ColumnName = "CardId", IsNullable = true)]
        public int? CardId { get; set; }

        /// <summary>
        /// 是否庄家
        /// </summary>
        [SugarColumn(ColumnName = "Isfarmhouse")]
        public bool? Isfarmhouse { get; set; } = false;

        /// <summary>
        /// 微信唯一标识
        /// </summary>
        [SugarColumn(ColumnName = "OpenId")]
        public string? OpenId { get; set; }
    }
}
